document.writeln("<div class=\"toplogin\">");
<!--{if !$uid}-->
document.writeln("    <div id=\"div_login\"> ");
document.writeln("      <form action=\"/apps/login_app.php\" method=\"post\" name=\"login\">");
document.writeln("        用户名：");
document.writeln("        <input type=\"text\" name=\"username\" size=\"12\" />");
document.writeln("        密码：");
document.writeln("        <input type=\"password\" name=\"userPassword\" size=\"12\" />");
document.writeln("        <input type=\"submit\" value=\"登录\" class=\"button\" />");
document.writeln("        <input type=\"button\" name=\"register\" value=\"注册\" class=\"button\" onclick=\"redirect(\'/register.php\')\" />");
document.writeln("      </form>");
document.writeln("    </div>");
<!--{/if}-->
<!--{if $uid}-->
document.writeln("    <div id=\"div_logined\"> ");
document.writeln("      <strong id=\"logined_username\" >{$userInfo['username']}</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"/manage\" rel=\"nofollow\">会员中心</a>&nbsp;|&nbsp; <a href=\"/out.php\">退出登录</a> ");
document.writeln("    </div>");
<!--{/if}-->
document.writeln("</div>");